<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div class="container" id="page">
        <div id="header">
            <div id="logo">
                <?php 
                echo CHtml::image('images/pekin_logo_web.png','Projecte Pekin',array("width"=>90, "height"=>23));
                ?>
            </div>
	</div>
            <?php
            if (!Yii::app()->user->isGuest) {
                echo Chtml::link('Inici', array('/site/index')). ' | ';
                echo Chtml::link('Comandes',array('/comanda/index')). ' | ';
                echo CHtml::link('Desconnectar', array('site/logout'));
            }
            ?>
</div>
	<?php echo $content; ?>
</body>
</html>